<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>工商管理-发起工单</title>
    <!-- jquery - boot -库文件 -->
    <script src="__PUBLIC__/script/jquery.1.11.1.js"></script>
    <script src="__PUBLIC__/script/bootstrap.min.js"></script>
    <!-- Bootstrap -->
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap -->
    <!-- font awesome -->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/FontAwesome/css/font-awesome.min.css">
    <script src="__PUBLIC__/script/common.js"></script>
    <!--easyui包含文件-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/easyui1.5.3/themes/material/easyui.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/easyui1.5.3/themes/icon.css">
    <script type="text/javascript" src="__PUBLIC__/plugins/easyui1.5.3/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/plugins/easyui1.5.3/locale/easyui-lang-zh_CN.js"></script>
    <!--layer-->
    <script type="text/javascript" src="__PUBLIC__/plugins/layer/layer.js"></script>
    <!-- 自定义 css -->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/reset.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/common.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
    <!-- end easyui -->
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="__PUBLIC__/script/html5shiv.js"></script>
    <script src="__PUBLIC__/script/respond.js"></script>
    <![endif]-->
</head>

<body>
    <include file="Public/header" />
    <!-- indexmain -->
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12 mainbox" id="mainbox">
                <!--menubegin-->
                <div class="datamenubox" id="leftmenu">
                    <div class="menuhead">工单管理</div>
                    <!-- treein -->
                    <div class="treein" id="menuin">
                        <ul class="list-group smenu">
                            <volist name="menulist" id="vo">
                                <a href="{:U($vo[url])}"><li class="list-group-item" id="{$vo.url}"><i class="fa fa-angle-right"></i>{$vo.name}</li></a>
                            </volist>
                        </ul>
                    </div>
                </div>
                <!--menuend-->
                <!--mainboxbegin-->
                <div class="col-md-12 rights" id="right">
                    <!-- 位置导航 -->
                    <ol class="breadcrumb">
                        <li class="active">主页</li>
                        <li class="active">工单管理</li>
                        <li class="active">发起工单</li>
                    </ol>
                    <!--选项卡-->
                    <div style="width:800px;height:400px;padding:15px;">
                        <div class="row">
                            <div class="col-md-12">
                                <form id="ff" method="post" data-options="novalidate:true">
                                    <div class="row">
                                        <div class="col-md-5">
                                            <input class="easyui-combobox" name="lx" id="lx" style="width:300px" data-options="label:'类型：',valueField:'id',textField:'text',panelHeight:'100',required:true">
                                        </div>
                                        <div class="col-md-5">
                                            <input class="easyui-combobox"   name="weizhi" id="weizhi" style="width:300px" data-options="label:'位置：',valueField:'id',textField:'text',panelHeight:'100',required:true">
                                        </div>
                                    </div>
                                    <div class="blank10"></div>
                                    <div class="row">
                                        <div class="col-md-5">
                                            <input class="easyui-textbox" name="qy" id="qy" style="width:300px" data-options="label:'服务企业：',valueField:'id',textField:'text',panelHeight:'100',required:true">
                                        </div>
                                        <div class="col-md-5">
                                            <input class="easyui-datebox"  type="text" name="sj" id="sj" style="width:300px" data-options="label:'时间：',required:true">
                                        </div>
                                    </div>
                                    <div class="blank10"></div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <input class="easyui-textbox" name="xq" id="xq" style="width: 700px;height:80px;" data-options="label:'详情：',prompt:'不能超过50个字',valueField:'id',textField:'text',panelHeight:'100',required:true"/>
                                        </div>
                                    </div>
                                    <div class="blank10"></div>
                                    <div class="row">
                                        <div class="col-md-5">
                                            <input class="easyui-combobox" name="ry" id="ry" style="width:300px" data-options="label:'人员：',valueField:'id',textField:'text',panelHeight:'100',required:true"/>
                                        </div>
                                    </div>
                                </form>
                                <div class="blank10"></div>
                                <div class="btnin">
                                    <div style="width: 50px;"></div>
                                    <a class="btn btn-info" id="submits">确认发起</a>&nbsp;
                                    <a class="btn btn-default" id="clear">重置</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                </div>
            </div>
        </div>
    <include file="Public/footer" />
    <script>
    $(document).ready(function() {
        //初始化页面
        $('#fggd').addClass('on');
        LoadDDL('lx','LX');
        LoadDDL('weizhi','WEIZHI');
        LoadDDL('ry','RY');
    });
    //重置
    $('#clear').click(function(){
        $('#ff').form('clear');
    })
    //发起工单
    $('#submits').click(function(){
        var url="";
        url="{:U('addwork')}";
        $('#ff').form('submit', {
            url: url,
            onSubmit: function(param){
                var isOk = false;
                isOk = $(this).form('enableValidation').form('validate');
                return isOk;
            },
            success: function (data) {
                layer.msg(JSON.parse(data));
                $('#ff').form('clear');
            }
        });
    })
    </script>
</body>

</html>